﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%>
<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>var webroot="{webroot}";</script>
<script src="{webroot}theme/default/style/js/jquery-1.11.0.js" type="text/javascript"></script>
<link rel="stylesheet" href="{webroot}theme/default/style/css/font-awesome.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.carousel.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/owl.theme.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap.3.2.0.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bootstrap-select.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-elements.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-animate.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-shop.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/settings.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/component.css" media="screen" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/bim.css" type="text/css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/custom.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/theme-responsive.css" />
<link rel="stylesheet" href="{webroot}theme/default/style/css/datepicker3.css" />
<link rel="stylesheet" href="{webroot}theme/default/css/other.css" />
<!--[if IE]>
        <link rel="stylesheet" href="{webroot}theme/default/style/css/ie.css">
    <![endif]-->
<!--[if lte IE 8]>
        <script src="{webroot}theme/default/style/js/respond.js"></script>
    <![endif]-->
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script src="{webroot}lib/dialog/artdialog.js"></script>
<script>
$(function(){
	$(".unbind").click(function(){
		var config=$(this).attr("config");
		config=config.split(":");
		var apikey=config[0];
		var apiname=config[1];
		dialog({
			title:"\u0053\u0044\u0043\u004d\u0053\u63d0\u793a",
			content:"\u786e\u5b9a\u8981\u89e3\u9664\u7ed1\u5b9a\uff1f",
			ok:function()
			{
				var url,data;
				url="?act=ubound&apikey="+apikey;
				$.ajax({
				type:"post",
				cache:false,
				url:url,
				error:function(){alert("fail");},
				success:function(_)
				{
					var act=_.substring(0,1);
					var info=_.substring(1);
					
					if(act==0)
					{
						$.fn.tips({type:"error",content:"解除"+apiname+"绑定失败"});
					}
					else
					{
						$.fn.tips({type:"ok",content:"解除"+apiname+"绑定成功"});
						setTimeout(function(){location.href="?"},3000);
					}
				}});
			},
			cancel:true
			}).showModal();
		return false
	});
	$("#user_menu_14").addClass("hover");
})
</script>
</head>

<body>
<div class="body">
    {sdcms:include("../sdcms_head.asp")}
   <div id="useragreement-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div id="privacy-policy-modal" class="modal fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
      <div class="modal-content"></div>
    </div>
  </div>
  <div role="main" class="main">
    <div class="space10"></div>
    <div id="content" class="content full">
      <div role="main" class="main shop">
        <div class="container">
         <div class="space20"></div>
        <div class="main_left">
        {sdcms:include("sdcms_menu.asp")}
        </div> 
        <div class="main_right">
        <div class="title">账户绑定</div>
         <div class="p12">
                    <table id="tablelist">
                        <tr>
                            <th>绑定项目</th>
                            <th width="80">状态</th>
                            <th width="80">操作</th>
                        </tr>
                        {sdcms:rs field="setkey,setvalue" table="sd_config" where="setname='sdcms.api.login'"}
                        {dim arr:arr=split($rs[setkey],".")}
                        {dim setkey:setkey=arr(0)}
                        {dim setvalue:setvalue=eval($rs[setvalue])}
                        {if setvalue(0)<>""}
                        <tr>
                            <td class="item">{setvalue(0)}账户</td>
                            <td align="center">{if instr(bindarr,setkey)>0}已绑定{else}<span>未绑定</span>{/if}</td>
                            <td align="center">{if instr(bindarr,setkey)>0}<a href="javascript:;" class="unbind" config="{setkey}:{setvalue(0)}">解除绑定</a>{else}<a href="{webroot}api/login/{setkey}/api.asp">立刻绑定</a>{/if}</td>
                        </tr>
                        {/if}
                        {/sdcms:rs}
                    </table>
                </div>
        </div> 
        <div class="clear"></div>
        </div>
      </div>
    </div>
  </div>
    {sdcms:include("../sdcms_foot.asp")}
  </div>
<script src="{webroot}theme/default/style/js/jqueryappear.js"></script> 

<!-- Libs --> 
<script src="{webroot}theme/default/style/js/plugins.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.easing.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.cookie.js"></script> 
<script src="{webroot}theme/default/style/js/bootstrap.min.3.2.0.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/bootstrap-datepicker.defaults.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.tools.min.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.themepunch.revolution.js"></script> 
<script src="{webroot}theme/default/style/js/owl.carousel.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.flipshow.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.stellar.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.validate.js"></script> 
<script src="{webroot}theme/default/style/js/jquery.isotope.js"></script> 
<script src="{webroot}theme/default/style/js/view.home.js"></script> 
<script src="{webroot}theme/default/style/js/theme.js"></script> 
<script type="text/javascript" src="{webroot}theme/default/style/js/site.dialogues.js"></script>
</body>
</html>